package com.hs.utils;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author 何森
 * @since 2023-08-02-10:06
 */
public class IdToCollectionUtil {
    private IdToCollectionUtil(){}

    public static List<Long> toList(String id){
        return Arrays.stream(id.split(",")).map(Long::parseLong).collect(Collectors.toList());
    }
}
